import Vue from 'vue';
import Vuex from 'vuex';
// import { querystring } from 'vux';
// import * as actions from './actions';
// import * as getters from './getters';
// import ld from './modules/ld';

Vue.use(Vuex);

const state = {
    isLoading: false,
    direction: 'forward',
    phoneType: 0,
    isLogin: false
};

const getters = {};

const actions = {};

const mutations = {
    updateLoadingStatus (state, payload) {
        state.isLoading = payload.isLoading;
    },
    updateDirection (state, payload) {
        state.direction = payload.direction;
    }
};

export default new Vuex.Store({
    // actions,
    // getters,
    // modules: {
    //     ld
    // }
    state,
    getters,
    actions,
    mutations
});
